clear;
close all;
%% select channel
P="D:\APPdocu\python\UWA_GAN\data";
GAN_Path=P;
flag=1; % 1: NOF1; 2: NSC1
channel1='Generated_data\NOF1_256';
channel2='Generated_data\NCS1_256'; 
filepath1 = fullfile(GAN_Path, channel1, 'mat');
filepath2 = fullfile(GAN_Path, channel2, 'mat');

temp=3;

filename1 = fullfile(filepath1, ['mat_' sprintf('%03d', temp) '.mat']);
filename2 = fullfile(filepath2, ['mat_' sprintf('%03d', temp) '.mat']);

var_struct1=load(filename1);
name_cell=fieldnames(var_struct1);
mat1=getfield(var_struct1,char(name_cell));


var_struct1=load(filename2);
name_cell=fieldnames(var_struct1);
mat2=getfield(var_struct1,char(name_cell));


h1_real=mat1(:,:,1);
h1_img=mat1(:,:,2);
h1=h1_real+1i*h1_img;

h2_real=mat2(:,:,1);
h2_img=mat2(:,:,2);
h2=h2_real+1i*h2_img;

[~]=channel_plot(h2)




